package com.alks.function.controller.stockdept.pcfactorywork;

import com.alks.common.aop.ApiRestController;
import com.alks.common.aop.WebLogger;
import com.alks.entity.data.response.ResponseInfo;
import com.alks.function.data.request.stockdept.pcfactoryquery.PackMatchRequest;
import com.alks.function.service.stockdept.pcfactoryquery.IPackMatchService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author MS
 * @since 2024/8/13下午6:28
 */
@RestController
@ApiRestController("/stkQuery/packMatch/query")
@Api(value = "仓储部", tags = "仓储部-仓储工厂查询-包材配套查询")
@Slf4j
public class PackMatchController {
    @Autowired
    private IPackMatchService service;

    @WebLogger
    @PostMapping("/temp")
    @ApiOperation(value = "包材配套查询-分页可条件查询", tags = "仓储部-仓储工厂查询-包材配套查询")
    public ResponseInfo temp(@RequestBody PackMatchRequest request) {
        return service.temp(request);
    }

    @WebLogger
    @PostMapping("/detail")
    @ApiOperation(value = "明细查询-分页可条件查询", tags = "仓储部-仓储工厂查询-包材配套查询")
    public ResponseInfo detail(@RequestBody PackMatchRequest request) {
        return service.detail(request);
    }

}